package com.tech.zhidengxian.service.api;

import com.tech.zhidengxian.model.constant.GoodsState;
import com.tech.zhidengxian.model.dto.GoodsDTO;
import com.tech.zhidengxian.model.dto.page.MyPage;
import com.tech.zhidengxian.model.dto.request.GoodsRequest;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface GoodsService {
    MyPage<GoodsDTO> pageQueryRecommend(GoodsRequest goodsRequest);
    MyPage<GoodsDTO> pageQueryLocalCity(GoodsRequest goodsRequest);
    MyPage<GoodsDTO> pageQuerySchool(GoodsRequest goodsRequest);
    MyPage<GoodsDTO> pageQueryByDetail(GoodsRequest goodsRequest);

    List<GoodsDTO> queryListByFid(Long fansId);
    GoodsDTO publishGoods(GoodsDTO goodsDTO);

    GoodsDTO queryGoodsById(Long id);
    int updateGoodsCount(GoodsDTO goodsDTO);
    int updateGoodsState(Long id, GoodsState goodsState);
    int updateGoods(GoodsDTO goodsDTO);

    void deleteById(Long id);
//    int updateGoods(GoodsDTO goodsDTO);
}
